Why do I get a websocket connection to domain.com failed ? with postman it works well

您所在的位置:网站首页 connect failed in tcp_connect Why do I get a websocket connection to domain.com failed ? with postman it works well

Why do I get a websocket connection to domain.com failed ? with postman it works well

#Why do I get a websocket connection to domain.com failed ? with postman it works well| 来源: 网络整理| 查看: 265

Using postman I can't connect and send data to the same link. But working with websocketpeer, it works only when i use it on localhost and not with the https nginx server. In browser html5 I have error websocket connection to domain.com failed, and the code in gdscript of the client is. It doesnt work on godot client also when using hte public domain.

extends Node var socket = WebSocketPeer.new() func _ready(): var err = socket.connect_to_url("wss://mustafalou.com/wsapp") if err != OK: print("Unable to connect") else: print("Connected to server") func _process(_delta): socket.poll() if socket.get_ready_state() == WebSocketPeer.STATE_OPEN getMessage()


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3